SMBv1 Protocol

Check SMBv1

1
2
3
# Local
Get-Item HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters | ForEach-Object {Get-ItemProperty $_.pspath}
#Default configuration = Enabled (No registry key is created), so no SMB1 value will be returned

Disable SMBv1

1
2
# Local
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 0 Force

Enable SMBv1

1
2
# Local
Set-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" SMB1 -Type DWORD -Value 1 Force

Note

You must restart the computer after you make these changes.